package org.cloud.api.auth.client.client;

import org.cloud.api.auth.client.callbackfactory.SlothAuthenticationClientFallbackFactory;
import org.cloud.api.auth.client.config.FeignLoggerConfig;
import org.cloud.common.model.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 
 * @author wangyuan
 * @since 2019年6月9日 上午8:31:09
 *
 */
@FeignClient(value = "cloud-api-auth", fallbackFactory = SlothAuthenticationClientFallbackFactory.class, configuration = FeignLoggerConfig.class)
@RequestMapping(value = "/auth")
public interface SlothAuthenticationClient {

	@RequestMapping(value = "/service", method = RequestMethod.POST)
	public R authenticateService(@RequestParam("requestUri")String requestUri);
}
